<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/16 0016
 * Time: 下午 2:28
 */
namespace App\Http\Admin\Branch\Controllers;

use Framework\BaseClass\Http\Admin\Controller;
use App\Http\Admin\Website\Models\Menu;
use App\Eloquent\Ygt\Branch;

class IndexController extends Controller
{
    protected $modelName = 'Branch';
    protected $company = true;

    protected $rules = [
//        'plate_id' => 'bail|required|integer',
        'sort_id' => 'required',
//        'img_id' => 'required|integer',
    ];

    public function __construct()
    {
        parent::__construct();
        $this->model = new Branch();

    }

    protected function _where()
    {
        return [
            'plate_id'=>request('plate_id')
        ];
    }

    protected function _cdata(){
        $cdata = [
            'plate_id'=>request('plate_id')
        ];
        return $cdata;
    }

    protected function _vdata()
    {
        $plateId = request('plate_id');

        return compact('plateId');
    }
}